namespace KTD.Web.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class House新增字段 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Houses", "onSaleType", c => c.String());
            AddColumn("dbo.Houses", "onSaleProduct", c => c.String());
            AddColumn("dbo.Houses", "onSaleCount", c => c.Int(nullable: false));
            AddColumn("dbo.Houses", "zongCengShu", c => c.Int(nullable: false));
            AddColumn("dbo.Houses", "rongJiLv", c => c.String());
            AddColumn("dbo.Houses", "shangGuan", c => c.String());
            AddColumn("dbo.Houses", "jiaoFangShiJian", c => c.String());
            AddColumn("dbo.Houses", "cheWeiBi", c => c.String());
        }
        
        public override void Down()
        {
            DropColumn("dbo.Houses", "cheWeiBi");
            DropColumn("dbo.Houses", "jiaoFangShiJian");
            DropColumn("dbo.Houses", "shangGuan");
            DropColumn("dbo.Houses", "rongJiLv");
            DropColumn("dbo.Houses", "zongCengShu");
            DropColumn("dbo.Houses", "onSaleCount");
            DropColumn("dbo.Houses", "onSaleProduct");
            DropColumn("dbo.Houses", "onSaleType");
        }
    }
}
